package cn.cs.service;

import cn.cs.common.IdWorker;
import cn.cs.mapper.CsTradeMapper;
import cn.cs.mapper.WithdrawalApplyMapper;
import cn.cs.pojo.CsTrade;
import cn.cs.vo.DmItemMessageVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Calendar;
import java.util.List;
import java.util.Map;

/**
 * yuexl
 */
@RestController
public class WithdrawalPayService {
    private static final Logger logger = LoggerFactory.getLogger(WithdrawalPayService.class);

    @Resource
    private WithdrawalApplyMapper withdrawalApplyMapper;

    @RequestMapping(value = "/getQgTradeListByMapPage", method = RequestMethod.POST)
    public List<Map<String,Object>> getQgTradeListByMapPage(@RequestBody Map<String,Object> param)throws Exception{
        return withdrawalApplyMapper.getQgTradeListByMapPage(param);
    }

    @RequestMapping(value = "/getQgTradeCountByMap", method = RequestMethod.POST)
    public Integer getQgTradeCountByMap(@RequestBody Map<String,Object> param)throws Exception{
        return withdrawalApplyMapper.getQgTradeCountByMap(param);
    }

}
